package com.cool.shark.service;

import com.cool.shark.pojo.dto.UserDto;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @Name: user
 * @Author: 西风残叶
 * @Date: 2024/3/31 13:48
 * @Version: 1.0
 * @TODO: TODO
 */
@SpringBootTest
@Slf4j
public class user {
    @Autowired
    UserService service;

    @Test
    void test() {
        UserDto userDto = new UserDto();
        userDto.setUsername("19948999072");
        userDto.setPassword("123456");
        service.addUser(userDto);
        log.info("添加成功");
    }
}
